﻿using System;

namespace DesignPattern.com.state {
    public class StateB :State{
        public StateB(Context con) : base(con){ }
        public override void Handle(int val){
            Console.WriteLine("stateB-handle="+val);
            if (val > 20){
                con.setState(new StateC(con));
            }
        }
    }
}